function runmodel(type, varargin)

% ----------------------------------------------
% This function runs the entire model.  It can
% be used in multiple formats, depending on what
% information you give it.
%-----------------------------------------------

if strcmp(type, 'all')
    runall(varargin);
else
    error('The type is not recognized.  Please look at documentation.');
end